package pers.xhh.frontapi.common;

/**
 * @author wei-xhh
 * @date 2020-11-23
 */
public class Constant {
    public static final int ROLE_TYPE = 0;
    public static final String ROLE = "超级管理员";
    public static final String LIST_PERMISSION = "list";
    public static final String TREE_PERMISSION = "tree";
    public static final int ATTR_LIST_LENGTH = 3;

    /**
     * 微博登录测试号
     */
    public static final String CLIENT_ID = "1799353902";
    /**
     * 测试号秘钥
     */
    public static final String CLIENT_SECRET = "4111ba9026c164e1447a7254a650be2e";
    /**
     * 授权成功转发地址
     * http://127.0.0.1:8848/mi/api/oauth2.0/weibo
     * http://42.194.142.165:8088/front/mi/api/oauth2.0/weibo
     * 应该是转到首页
     * http://localhost:8080/#/
     */
    public static final String REDIRECT_URI = "http://42.194.142.165:8088/front/mi/api/oauth2.0/weibo";
    /**
     * 微博登录授权类型
     */
    public static final String GRANT_TYPE = "authorization_code";
    /**
     * 微博登录获取accent_token,唯一账号地址
     */
    public static final String ACCENT_TOKEN_URI = "https://api.weibo.com/oauth2/access_token";
    /**
     * 微博登录获取用户信息地址
     */
    public static final String USERS_URI = "https://api.weibo.com/2/users/show.json";
    /**
     * 购物车reids
     */
    public static final String CART_PREFIX = "mymishop:cart:";
    /**
     * 防重令牌
     */
    public static final String USER_ORDER_TOKEN_PREFIX = "order:token:";
    /**
     * 短信验证
     */
    public static final String USER_AUTH_CODE_KEY = "mymishop:code:";
    /**
     * 发送短信验证校验
     */
    public static final String APP_CODE = "0db4401df355450385fa11bdd7300b3c";
    /**
     * 短信内容
     * 【云短信】您的验证码是#code#。如非本人操作，请忽略本短信
     * 【儿童教务】您正在登录验证,验证码为3256 ,60s内有效,请尽快验证。
     */
    public static final String CONTENT = "【商城】您正在登录验证,验证码为";
    public static final String FIX = " ,60s内有效,请尽快验证。";
    /**
     * 短信地址
     */
    public static final String AUTH_URL = "https://zwp.market.alicloudapi.com/sms/sendv2";
    /**
     * 我的订单页
     */
    public static final String MY_ORDER_URL = "http://42.194.142.165:8080/#/order";
}
